<?php
/**
 * Created by PhpStorm.
 * User: wx
 * Date: 2016/12/27
 * Time: 上午12:07
 */
?>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url')?>/css/reset.css" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url');?>"/>
<link rel='stylesheet' id='plugin_stylesheet-css'  href='<?php bloginfo('template_url')?>/css/prettify.css' type='text/css' media='all' />
<script type='text/javascript' src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script>
<script type='text/javascript' src='<?php bloginfo('template_url')?>/js/jquery-migrate.min.js'></script>
<script type='text/javascript' src='<?php bloginfo('template_url')?>/js/functions.js'></script>

<title><?php
	global $page, $paged;
	$site_description = get_bloginfo( 'description', 'display' );
 	if ($site_description && ( is_home() || is_front_page() )) {
		bloginfo('name');
		echo " - $site_description";
	} else {
		echo trim(wp_title('',0));
		if ( $paged >= 2 || $page >= 2 )
			echo ' - ' . sprintf( __( '第%s页' ), max( $paged, $page ) );
		echo ' | ' ;
		bloginfo('name');
	}
?></title>
<meta name="keywords" content="<?php echo cs_get_option('keywords');?>" />
<meta name="description" content="<?php echo cs_get_option('description');?>" />
</head>
<body class="home blog zh">

    <div class="share-info" style="display:none">
                    <img src="picture/20160624105914_zxqfqrqkdi.jpg" />
     </div>

    <div id="wrap">
        <div class="header">
            <!-- 导航遮罩 -->
            <div class="main-wrap relative">
                <a href="javascript:;" id="nav-trigger" class="nav-toggle">
                    <span></span>
                    <span></span>
                    <span></span>
                </a>
               
                <div class="logo" style=" background: url(<?php echo cs_get_option('logo2');?>) no-repeat;">
                    <a class="normal" style="background:url(<?php echo cs_get_option('logo1');?>) no-repeat" href="<?php bloginfo('url');?>"  title="<?php bloginfo('name');?>" rel="home">
                        <span class="none"><?php bloginfo('name');?></span>
</a>
</div>
                <?php

                $defaults = array(
                    'theme_location'  => 'header_menu',
                    'container'       => 'div',
                    'container_id'    => 'nav',
                    'menu_class'      => 'navitem',
                    'menu_id'         => 'menu',
                    'link_before'          => '<span class="navitem-text">',
                    'link_after'           => '</span>',
                );

                wp_nav_menu( $defaults );

                ?>
                <script type='text/javascript'>
                    $('#menu > li').addClass('navitem');
                </script>





</div>

</div>
</div>
<!-- // header -->
